package entityManager

import (
	"gitee.com/fierce_wolf/go-fox-edge-common/commEntity"
	"gitee.com/fierce_wolf/go-fox-edge-common/commRedisService"
	//_ "github.com/go-sql-driver/mysql" //具体使用的时候，请在服务中，某个go文件中import这一句话
	//	_ "github.com/mattn/go-sqlite3"    //具体使用的时候，请在服务中，某个go文件中import这一句话
)

type entityManager struct {
}

func (e *entityManager) Instance() {
	consumer := commRedisService.IRedisManager.GetRedisConsumer()
	reader := commRedisService.IRedisManager.GetRedisReader()

	// 注册redis操作
	consumer[commEntity.Type.ConfigEntity.Type()] = nil
	consumer[commEntity.Type.DeviceEntity.Type()] = nil

	reader[commEntity.Type.DeviceValueEntity.Type()] = nil
	reader[commEntity.Type.DeviceTemplateEntity.Type()] = nil
	reader[commEntity.Type.IotTemplateEntity.Type()] = nil
}
